package com.zzhardy;

import com.zzhardy.utils.security.JwtUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.web.WebApplicationInitializer;

/**
 * @Author：Hardy
 * @Date：2021/1/17
 * @Function:
 */
@SpringBootApplication
@EnableCaching
public class Application extends SpringBootServletInitializer implements WebApplicationInitializer {
    
    @Bean
    public JwtUtil jwtUtil() {
        return new JwtUtil();
    }
    
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    
}